const base = '';
// const base = 'http://localhost:8080';

export const api_urls = {
    users: {
        login: base + '/api/users/login',
        logout: base + '/api/users/logout',
        page: base + "/api/users/page",
        create: base + "/api/users/create",
        update: base + "/api/users/update",
        delete: base + "/api/users/delete",
        updatePassword: base + "/api/users/update_password",
    },
    material: {
        page: base + '/api/material/page',
        create: base + '/api/material/create',
        update: base + "/api/material/update",
        delete: base + "/api/material/delete",
        verifyAmount: base + "/api/material/verify_amount",
        upload: base + '/api/material/upload',
    },
    project: {
        page: base + "/api/project/page",
        create: base + "/api/project/create",
        update: base + "/api/project/update",
        delete: base + "/api/project/delete",
        contract_preview: base + "/api/overview/contract_preview",
        overview: base + "/api/overview/project",
        upload: base + "/api/project/import_project_from_file",
    },
    provider: {
        page: base + "/api/provider/page",
        create: base + "/api/provider/create",
        update: base + "/api/provider/update",
        delete: base + "/api/provider/delete",
        overview: base + "/api/overview/provider",
    },
    contract: {
        page: base + "/api/contract/page",
        create: base + "/api/contract/create",
        update: base + "/api/contract/update",
        delete: base + "/api/contract/delete",
    },
    payment: {
        page: base + "/api/payment/page",
        create: base + "/api/payment/create",
        update: base + "/api/payment/update",
        delete: base + "/api/payment/delete",
    },
    invoice: {
        page: base + "/api/invoice/page",
        create: base + "/api/invoice/create",
        update: base + "/api/invoice/update",
        delete: base + "/api/invoice/delete",
    }
}